BindObject Method

Binds to the Active Directory object specified by ADsPath.

Syntax

ActiveDirectory.BindObject(ADsPath String)

Parameters

ADsPath Specifies the ADs path of the object to bind to in the form of an LDAP query.

Return Type

Dispatch.

Example

To bind to the rootDSE object, enter:

Dim objActiveDirectory, objRootDSE

Set objActiveDirectory = CreateObject("McActiveDir.ActiveDirectory")

objActiveDirectory.BindObject("LDAP://rootDSE", objRootDSE)

Set objRootDSE = Nothing
Set objActiveDirectory = Nothing

This example binds to the rootDSE object of the domain.